<html lang="en">
<head>
    @include('Admin.header')
</head>
<body>
<!-- 顶部开始 -->
@component('Admin.section.title')
@endcomponent
<div class="wrapper">
    @include('Admin.menu')
    <div class="page-content">
        <div class="content">
            <xblock>
                <button class="layui-btn" onclick="_add('添加角色','{{url('Admin/System/role/add')}}','600','400')"><i class="layui-icon">&#xe608;</i>添加</button><span class="x-right" style="line-height:40px">共有数据：{{count($list)}} 条</span>
            </xblock>
            <table class="layui-table" >
                <thead>
                <tr>
                    <th>
                        ID
                    </th>
                    <th>
                        角色名
                    </th>
                    <th>
                        说明
                    </th>
                    <th>
                        权限列表
                    </th>
                    <th>
                        创建人
                    </th>
                    <th>
                        操作
                    </th>
                </tr>
                </thead>
                <tbody>
                @foreach ($list as $vo)
                    <tr>
                        <td>
                            {{ $vo->id }}
                        </td>
                        <td>
                            {{ $vo->name }}
                        </td>
                        <td>
                            {{ $vo->explain }}
                        </td>
                        <td >
                            {{$vo->id_list}}
                        </td>
                        <td class="td-status">
                            {{$vo->create_user}}
                        </td>
                        <td class="td-manage">
                            <a title="分配权限" href="javascript:;" onclick="full_show('分配权限','{{url('Admin/System/role/authority')}}/{{$vo->id}}')" class="ml-5" style="text-decoration:none">
                                <i class="layui-icon">&#xe617;</i>
                            </a>&nbsp;
                            <a title="编辑" href="javascript:;" onclick="_edit('编辑','{{url('Admin/System/role/edit')}}/{{$vo->id}}','600','350')"
                               class="ml-5" style="text-decoration:none">
                                <i class="layui-icon">&#xe642;</i>
                            </a>&nbsp;
                            <a title="删除" href="javascript:;" onclick="_del(this,'{{url('Admin/System/role/del')}}','{{$vo->id}}','{{csrf_token()}}')"
                               style="text-decoration:none">
                                <i class="layui-icon">&#xe640;</i>
                            </a>
                        </td>
                    </tr>
                @endforeach
                </tbody>
            </table>
        </div>
    </div>
</div>
@component('Admin.section.bg')
@endcomponent
</body>
</html>